package com.example.crm01.service.form.client;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;



public class ClientAddForm {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 客户名称
     */
    @NotBlank(message = "客户名称不能为空")
    private String clientName;

    /**
     * 客户曾用名
     */
    private String clientFormerName;

    /**
     * 客户身份证
     */
    @NotBlank(message = "客户身份证不能为空")
    private String idCard;

    /**
     * 客户地址
     */
    @NotBlank(message = "客户地址不能为空")
    private String address;

    @NotNull(message = "区域不能为空")
    private Integer region;

    /**
     * 客户归属地
     */
    private String homeLocation;

    /**
     * 客户联系人
     */
    @NotBlank(message = "客户地址不能为空")
    private String contacts;

    /**
     * 客户电话1
     */
    @NotNull(message = "客户电话1不能为空")
    private Integer phoneOne;

    /**
     * 客户电话2
     */
    private Integer phoneTwo;

    /**
     * 客户经理
     */
    @NotBlank(message = "客户经理不能为空")
    private String clientManger;

    /**
     * 客户经理电话
     */
    @NotNull(message = "客户经理电话不能为空")
    private Integer mangerPhone;

    /**
     * 业务经理
     */
    @NotBlank(message = "业务经理不能为空")
    private String salesman;

    public @NotBlank(message = "客户名称不能为空") String getClientName() {
        return clientName;
    }

    public void setClientName(@NotBlank(message = "客户名称不能为空") String clientName) {
        this.clientName = clientName;
    }

    public String getClientFormerName() {
        return clientFormerName;
    }

    public void setClientFormerName(String clientFormerName) {
        this.clientFormerName = clientFormerName;
    }

    public @NotBlank(message = "客户身份证不能为空") String getIdCard() {
        return idCard;
    }

    public void setIdCard(@NotBlank(message = "客户身份证不能为空") String idCard) {
        this.idCard = idCard;
    }

    public @NotBlank(message = "客户地址不能为空") String getAddress() {
        return address;
    }

    public void setAddress(@NotBlank(message = "客户地址不能为空") String address) {
        this.address = address;
    }

    public @NotNull(message = "区域不能为空") Integer getRegion() {
        return region;
    }

    public void setRegion(@NotNull(message = "区域不能为空") Integer region) {
        this.region = region;
    }

    public String getHomeLocation() {
        return homeLocation;
    }

    public void setHomeLocation(String homeLocation) {
        this.homeLocation = homeLocation;
    }

    public @NotBlank(message = "客户地址不能为空") String getContacts() {
        return contacts;
    }

    public void setContacts(@NotBlank(message = "客户地址不能为空") String contacts) {
        this.contacts = contacts;
    }

    public @NotNull(message = "客户电话1不能为空") Integer getPhoneOne() {
        return phoneOne;
    }

    public void setPhoneOne(@NotNull(message = "客户电话1不能为空") Integer phoneOne) {
        this.phoneOne = phoneOne;
    }

    public Integer getPhoneTwo() {
        return phoneTwo;
    }

    public void setPhoneTwo(Integer phoneTwo) {
        this.phoneTwo = phoneTwo;
    }

    public @NotBlank(message = "客户经理不能为空") String getClientManger() {
        return clientManger;
    }

    public void setClientManger(@NotBlank(message = "客户经理不能为空") String clientManger) {
        this.clientManger = clientManger;
    }

    public @NotNull(message = "客户经理电话不能为空") Integer getMangerPhone() {
        return mangerPhone;
    }

    public void setMangerPhone(@NotNull(message = "客户经理电话不能为空") Integer mangerPhone) {
        this.mangerPhone = mangerPhone;
    }

    public @NotBlank(message = "业务经理不能为空") String getSalesman() {
        return salesman;
    }

    public void setSalesman(@NotBlank(message = "业务经理不能为空") String salesman) {
        this.salesman = salesman;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "ClientAddForm{" +
                "id=" + id +
                ", clientName='" + clientName + '\'' +
                ", clientFormerName='" + clientFormerName + '\'' +
                ", idCard='" + idCard + '\'' +
                ", address='" + address + '\'' +
                ", region=" + region +
                ", homeLocation='" + homeLocation + '\'' +
                ", contacts='" + contacts + '\'' +
                ", phoneOne=" + phoneOne +
                ", phoneTwo=" + phoneTwo +
                ", clientManger='" + clientManger + '\'' +
                ", mangerPhone=" + mangerPhone +
                ", salesman='" + salesman + '\'' +
                '}';
    }
}
